<?php

class UsersController extends Controller
{

	public function actions()
	    {
	        return array(
	            'login'=>'application.controllers.users.LoginAction',
	        	'passwd'=>'application.controllers.users.PasswdAction',
	        	'join'=>'application.controllers.users.JoinAction',
	        	'setting'=>'application.controllers.users.SettingAction',
	        	'forgetPw'=>'application.controllers.users.ForgetPwAction',
	        );
	    }

	/**
	 * Logs out the current user and redirect to homepage.
	 */
	public function actionLogout()
	{
		Yii::app()->user->logout();
		$this->redirect(Yii::app()->homeUrl);
	}
}